\name{CreateLine}
\alias{CreateLine}
%- Also NEED an '\alias' for EACH other topic documented here.
\encoding{UTF-8}
\title{
Creates a two-dimensional GeoLine geometry
}
\description{
指定xy坐标值创建线对象
}
\usage{
CreateLine(xys, polys)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{xys}{
xy坐标值，为包含 xy 值的 matrix 对象，其中matrix中第一列存储x值，第二列存储y值。
}
  \item{polys}{
子对象点数目数组
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
创建成功返回 \code{\link{GeoLine-class}} 对象，失败返回 NULL
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
\code{\link{CreateGeometry}},\code{\link{CreatePoint}},\code{\link{CreateRegion}},\code{\link{SetPoints}}
}

\examples{

ps <- matrix(nrow = 5, ncol = 2)
ps[,1] <- c(10,20,20,10,10)
ps[,2] <- c(10,10,20,20,10)
line <- CreateLine(ps, c(5))

}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ supermap }% use one of  RShowDoc("KEYWORDS")
\keyword{ GeoLine }% __ONLY ONE__ keyword per line
